#!/bin/bash

if [ ! -d ./bin ]; then mkdir ./bin; fi
if [ -e ./bin/allinone.js ]; then rm ./bin/allinone.js; fi

SOURCES="
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/Private.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/Constants.js
    ${_SRCROOT}/WebScraper/JavaScript/Common/Utilities.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/Accounts.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/ChallengePage.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/DownloadTransactions.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/LoginPage.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/StatementsAndDocuments.js
    ${_SRCROOT}/WebScraper/JavaScript/Chase/JS/Main.js
"

for file in ${SOURCES}; do cat $file >> ./bin/allinone.js; done
